package com.fy.distributor.controller;

import com.fy.common.api.CommonResult;
import com.fy.distributor.vo.SaleEntityVo;
import com.fy.distributor.vo.SaleTicketVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/distributor/sell")
@Api(tags="订单模块")
@RefreshScope
public class SellController {
    @ApiOperation("查询实物订单")
    @GetMapping(value = "/findEntityOrderAll")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "storeId", value = "门店id"),
            @ApiImplicitParam(name = "type", value = "类别"),
    })
    public CommonResult findEntityOrderAll(Integer storeId,Integer objectOrderId)
    {
        List<SaleEntityVo> saleEntityVoList = null;
        return CommonResult.success(saleEntityVoList);
    }

    @ApiOperation("查询门票订单")
    @GetMapping(value = "/findTicketOrderAll")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "storeId", value = "门店id"),
            @ApiImplicitParam(name = "type", value = "类别"),
    })
    public CommonResult findTicketOrderAll(Integer storeId,Integer travelOrderId)
    {
        List<SaleTicketVo> saleTicketVoList = null;
        return CommonResult.success(saleTicketVoList);
    }

    @ApiOperation("查询实物订单详情信息")
    @GetMapping(value = "/findAllPhysicalOrderDetails")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "storeId", value = "门店id"),
            @ApiImplicitParam(name = "objectOrderId", value = "实物产品id"),
    })
    public CommonResult findAllPhysicalOrderDetails(Integer storeId,Integer objectOrderId)
    {
        List<SaleEntityVo> saleEntityVoList = null;
        return CommonResult.success(saleEntityVoList);
    }

    @ApiOperation("查询实物订单详情信息")
    @GetMapping(value = "/findAllPhysicalOrderDetails")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "storeId", value = "门店id"),
            @ApiImplicitParam(name = "objectOrderId", value = "门票产品id"),
    })
    public CommonResult findAllTicketOrderDetails(Integer storeId,Integer ticketOrderId)
    {
        List<SaleTicketVo> saleTicketVoList = null;
        return CommonResult.success(saleTicketVoList);
    }
}